package com.social.pojo.vto;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author zero
 * @version 1.0
 * @project demo
 * @description 查询条件
 * @date 2022/12/9 13:33:10
 */
@ApiModel("信访查询条件表")
@Data
public class PetitonVO {

    @ApiModelProperty("查询起始时间")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime beginTime;

    @ApiModelProperty("查询结束时间")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime endTime;

    @ApiModelProperty("查询状态")
    private Integer status;

    @ApiModelProperty("页面大小")
    private Integer pageSize;

    @ApiModelProperty("页面序号")
    private Integer currentPage;
}
